package com.xcfw.dorm.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.Objects;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Examine {
    private Integer id;

    private String buildingDormitory;

    private Integer studentId;

    private String studentName;

    private String studentClass;

    private Long studentPhone;

    private Integer assistantId;

    private String assistantName;

    private Long assistantPhone;

    private String backTime;

    private Integer backStatus;

    private String transactor;

    private Boolean status;

    private String uuid;

    private Date updateTime;

    private Date createTime;

    private Integer pageNum;

    private Integer pageSize;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        Examine examine = (Examine) o;
        return Objects.equals(buildingDormitory, examine.buildingDormitory) &&
                Objects.equals(studentId, examine.studentId) &&
                Objects.equals(studentName, examine.studentName) &&
                Objects.equals(studentClass, examine.studentClass) &&
                Objects.equals(studentPhone, examine.studentPhone) &&
                Objects.equals(assistantId, examine.assistantId) &&
                Objects.equals(assistantName, examine.assistantName) &&
                Objects.equals(assistantPhone, examine.assistantPhone) &&
                Objects.equals(backTime, examine.backTime) &&
                Objects.equals(backStatus, examine.backStatus) &&
                Objects.equals(transactor, examine.transactor);
    }

    @Override
    public int hashCode() {

        return Objects.hash(super.hashCode(), buildingDormitory, studentId, studentName, studentClass, studentPhone, assistantId, assistantName, assistantPhone, backTime, backStatus, transactor);
    }
}